/*  1:   */ package org.intellij.lang.regexp;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.Language;
import com.intellij.lang.LanguageParserDefinitions;
import com.intellij.lang.ParserDefinition;
import com.intellij.openapi.fileTypes.SingleLazyInstanceSyntaxHighlighterFactory;
import com.intellij.openapi.fileTypes.SyntaxHighlighter;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class RegExpSyntaxHighlighterFactory
/* 11:   */   extends SingleLazyInstanceSyntaxHighlighterFactory
/* 12:   */ {
/* 13:   */   private final ParserDefinition a;
/* 14:   */   
/* 15:   */   public RegExpSyntaxHighlighterFactory()
/* 16:   */   {
/* 17:29 */     this(RegExpLanguage.INSTANCE);
/* 18:   */   }
/* 19:   */   
/* 20:   */   protected RegExpSyntaxHighlighterFactory(@NotNull Language paramLanguage)
/* 21:   */   {
/* 22:33 */     this.a = ((ParserDefinition)LanguageParserDefinitions.INSTANCE.forLanguage(paramLanguage));
/* 23:   */   }
/* 24:   */   
/* 25:   */   @NotNull
/* 26:   */   protected SyntaxHighlighter createHighlighter()
/* 27:   */   {
/* 28:39 */     void tmp12_9 = new RegExpHighlighter(null, this.a);
/* 29:39 */     if (tmp12_9 == null) {
/* 30:39 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/RegExpSyntaxHighlighterFactory", "createHighlighter" }));
/* 31:   */     }
/* 32:39 */     return tmp12_9;
/* 33:   */   }
/* 34:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.RegExpSyntaxHighlighterFactory

 * JD-Core Version:    0.7.0.1

 */